<?php
$name=$_REQUEST["sa"];
$myfile = fopen( date("YmdHis").".txt", "w") or die("Unable to open file!"); 
$txt = $name; fwrite($myfile, $txt);
 fclose($myfile); 
?>